package com.diaohw.module.file.obj.entity;

import com.diaohw.platform.framework.db.flex.obj.model.BaseModel;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;

/**
 * 目录 实体类。
 *
 * @author D-Hw
 * @since 2024-11-22 17:21:01
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "目录")
@Table("CATALOG")
public class CatalogDO extends BaseModel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 目录名称
     */
    @Column("CATALOG_NAME")
    @Schema(description = "目录名称")
    private String catalogName;

    /**
     * 目录CODE
     */
    @Column("CATALOG_CODE")
    @Schema(description = "目录CODE")
    private String catalogCode;

    /**
     * 目录类型
     */
    @Column("CATALOG_TYPE")
    @Schema(description = "目录CODE")
    private Integer catalogType;
    /**
     * 父节点ID
     */
    @Column("PARENT_ID")
    @Schema(description = "父节点ID")
    private String parentId;

    /**
     * 排序
     */
    @Column("SORT")
    @Schema(description = "排序")
    private Integer sort;


}
